package Day02;

public class TestDeom {
    public static void main(String[] args) {
        /**
        int a = 5;
        a = a+10;//在a本身基础上增10
        System.out.println(a);

        double balance = 5000.0;//账户余额
        balance = balance+2000;//存款2000
        System.out.println(balance);//7000.0
        balance = balance-1000;//取款1000
        System.out.println(balance);//6000.0

        double money = 600.0;//消费金额
        money = money*0.8;//打八折
        System.out.println(money);//480.0
        */

        /*
         int a;
         int b,c,d;
         int e = 250;
         int f;
         f = 250;
         f = 360;
         int g = 5;
         int h = g+10;
         System.out.println('h');
         System.out.println(h);
         g = g+10;
         System.out.println(g);

         int a*b;
         int 1a;
         int 年龄;
         int nianling;
         int age;
         int score,myScore,myJavaScore;
         */


        /*
        int a = 5;
        long b = a;
        int c = (int)b;

        boolean d = true;
        boolean e = false;
        boolean f = 25;

         */

        char c1 = '女';
        char c2 = 'f';
        char c3 = '*';
        char c4 = '\'';
        char c5 = '6';
        char c6 = 6;
        System.out.println(c5);












        /*
        1.变量：
            int a;  int b,c;
            int d = 5; int e; e = 5;
            int f = e+10; System.out.println(e);
            e = e+10;
        2.8种基本数据类型：byte,short,int,long,float,double,boolean,char
            1)int:整型，4个字节，5,25,250...
            2)long:长整型，8个字节，5L,100000000000L...
            3)double:浮点型，8个字节，3.14，5.0,25.678...
            4)boolean:布尔型，1个字节，true,false
            5)char:字符型,2个字节,'你','y','7','*','\''
        3.类型间的转换
            1)两种方式:自动、强制
            2)两点规则
                short s1 = 5;
                short s2 = 6;
                short s3 = (short)(s1+s2);

         */


    }
}
